<?php

class Robot
{
	private $type;				// (int), Robot type.
	private $spawnPosX;			// (int), (Re)Spawn X-position.
	private $spawnPosY;			// (int), (Re)Spawn Y-position.
	private $posX;				// (int), Robots current X-position.
	private $posY;				// (int), Robots current Y-position.
	private $direction;			// (int), Robots direction (0,1,2,3 => left,right,top,bottom).
	private $health;			// (int), Robots health points.
	private $lives;				// (int), Robots lives left.
	private $alive;				// (bool), Robots alive status.
	private $register1;			// (int), Card in first register slot.
	private $register2;			// (int), Card in second register slot.
	private $register3;			// (int), Card in third register slot.
	private $register4;			// (int), Card in fourth register slot.
	private $register5;			// (int), Card in fifth register slot.
	private $lockedRegisters;	// (string), Locked register cards.
	private $powerDownStatus;	// (int), Robots power down status.


	public function __construct( $type, $spawnPosX, $spawnPosY, $posX, $posY, $direction, $health, $lives, $alive, $register1, $register2, $register3, $register4, $register5, $lockedRegisters, $powerDownStatus )
	{
		$this->type = $type;
		$this->spawnPosX = $spawnPosX;
		$this->spawnPosY = $spawnPosY;
		$this->posX = $posX;
		$this->posY = $posY;
		$this->direction = $direction;
		$this->health = $health;
		$this->lives = $lives;
		$this->alive = $alive;
		$this->register1 = $register1;
		$this->register2 = $register2;
		$this->register3 = $register3;
		$this->register4 = $register4;
		$this->register5 = $register5;
		$this->lockedRegisters = $lockedRegisters;
		$this->powerDownStatus = $powerDownStatus;
	}

	public function type()
	{
		return $this->type;
	}

	public function spawnPosX()
	{
		return $this->spawnPosX;
	}

	public function spawnPosY()
	{
		return $this->spawnPosY;
	}

	public function posX()
	{
		return $this->posX;
	}

	public function posY()
	{
		return $this->posY;
	}

	public function direction()
	{
		return $this->direction;
	}

	public function health()
	{
		return $this->health;
	}

	public function lives()
	{
		return $this->lives;
	}

	public function alive()
	{
		return $this->alive;
	}

	public function register1()
	{
		return $this->register1;
	}

	public function register2()
	{
		return $this->register2;
	}

	public function register3()
	{
		return $this->register3;
	}

	public function register4()
	{
		return $this->register4;
	}

	public function register5()
	{
		return $this->register5;
	}

	public function lockedRegisters()
	{
		return $this->lockedRegisters;
	}

	public function powerDownStatus()
	{
		return $this->powerDownStatus;
	}
}
